import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

//导入vant : 在main.js中导入组件,这样吧其他页面就不用在导入
import '@/utils/vant.js';
//2.导入amfe-flexble :动态设置rem为屏幕的1/10
import 'amfe-flexible'


//3.注册全局过滤器
import moment from 'moment'
//语言设置
moment.locale('zh-cn')
Vue.filter('fromNow', value => {
  return moment(value).fromNow()
})

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
